<%--
  Created by IntelliJ IDEA.
  User: aug_liu
  Date: 2021/2/24
  Time: 16:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改密码</title>
    <link href="img/favicon.ico" rel="shortcut icon">
    <link href="./bootstrap-4.6.0-dist/css/bootstrap.css" rel="stylesheet" >
    <script src="js/jquery.min.js"></script>
    <script src="./bootstrap-4.6.0-dist/js/bootstrap.js"></script>
</head>
<body>
<div class="container-sm">
    <div class="row">
        <div class="col">
        </div>
        <div class="col-6">
            <div class="span12">
                <div class="row-fluid">
                    <div class="span6">
                        &nbsp;
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <h3>
                            修改密码
                        </h3>
                        <h5><mark>用户ID：<%=request.getParameter("id")%> </mark></h5>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <p style="color: red">
                            ${errorMsg}
                        </p>
                    </div>
                </div>

                <form class="row g-1" action="userservlet?method=updatePassword" method="post">
                    <input type="hidden" name="id" value="<%=request.getParameter("id")%>"/>
                    <input type="hidden" name="method" value="updatePassword"/>
                    <div class="col-md-12">
                        <label for="oldPassword" class="form-label">旧密码：</label>
                        <input type="password" class="form-control" id="oldPassword" name="oldPassword" >
                    </div>
                    <div class="col-md-12">
                        <label for="newPassword" class="form-label">新密码：</label>
                        <input type="password" class="form-control" id="newPassword" name="newPassword" >
                    </div>
                    <div class="col-md-12">
                        <label for="confirmNewPassword" class="form-label">确认新密码：</label>
                        <input type="password" class="form-control" id="confirmNewPassword" name="confirmNewPassword">
                    </div>

                    <div class="col-12">
                        <button type="submit" class="btn btn-primary">新增/修改</button>
                        &nbsp;
                        <a href="userservlet" class="btn btn-primary">返回</a>
                    </div>
                </form>
            </div>
        </div>
        <div class="col">
        </div>
    </div>
</div>
<jsp:include page="footer.jsp"/>
</body>
</html>
